<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script type="text/javascript">
function authorityComm(type){
		var href="";
		if(type==1){
			href="${cdnctx}/activity/discountMain.jhtml";
		}else if(type==2){
			href="${cdnctx}/activity/ladderMain.jhtml";
		}else if(type==3){
			href="${cdnctx}/activity/moreFavourableMain.jhtml";
		}else if(type==4){
			href="${cdnctx}/activity/freePostageMain.jhtml";
		}else if(type==6){
			href="${cdnctx}/template/promotions.jhtml?marketingType=6&tmp_apt=1";
		}
		if(href!=""){
			window.location.href=href;
		}
		
		if(type==5){
			$.ajax({
			   type: "POST",
			   url: "${cdnctx}/activity/isAuthorityca.jhtml",
			   success: function(data){
			    if(data==0){
			    	var expiseDialog = art.dialog({id: 'expiseDialog',title: true,title:'系统提示',time: 6, lock:true,
				 		width:"650px",height:"100px",padding:"0px",fixed:true,noFn:true});
				 		var msg="<div class='buyNotice'><p style=''>该功能仅针对标准版用户开放，您可以通过下面优惠升级</p>升级到标准版：<a href='#'>16元/月 <span>20</span></a><a href='#'>48元/季  <span>60</span></a><a href='#'>98元/半年 <span>120</span></a><a href='#'>192元/年  <span>240</span></a></div>";
				    	expiseDialog.content(msg);
			    }else{
			    	window.location.href="${cdnctx}/activity/presentMain.jhtml";
			    }
			   }
			});
		}
	}
	</script>